We recommend using SvelteKit, the official application framework from the Svelte team powered by Vite:
npx sv create myappcd myappnpm installnpm run devDon’t worry if you don’t know Svelte yet! You can ignore all the nice features SvelteKit brings on top for now and dive into it later.
Alternatives to SvelteKitYou can also use Svelte directly with Vite by running npm create vite@latest and selecting the svelte option. With this, npm run build will generate HTML, JS and CSS files inside the dist directory using vite-plugin-svelte. In most cases, you will probably need to choose a routing library as well.
There are also plugins for Rollup, Webpack and a few others, but we recommend Vite.
Editor toolingThe Svelte team maintains a VS Code extension, and there are integrations with various other editors and tools as well.
You can also check your code from the command line using sv check.
Getting helpDon’t be shy about asking for help in the Discord chatroom! You can also find answers on Stack Overflow.